package com.ytf.core.web.pojo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author YTF
 * @since 2025-05-20
 */
@Schema(name = "RoleVo", description = "角色信息视图对象")
@Data
public class RoleVo {

    /**
     * 主键
     */
    @Schema(description = "角色ID", example = "1234567890")
    private String id;

    /**
     * 角色唯一标识
     */
    @Schema(description = "角色唯一标识", example = "ADMIN")
    private String roleKey;

    /**
     * 角色名
     */
    @Schema(description = "角色名称", example = "管理员")
    private String roleName;

    /**
     * 父角色ID
     */
    @Schema(description = "父角色ID", example = "1")
    private Long parentId;

    /**
     * 角色描述
     */
    @Schema(description = "角色描述", example = "系统管理员角色")
    private String description;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间", example = "2025-05-20 12:00:00")
    private LocalDateTime createTime;

    /**
     * 权限列表
     */
    @Schema(description = "权限列表")
    private List<PermissionVo> permissionVoList;
}